﻿/*----------------------------------------------------------------
// Copyright (C) 2011 上海
// 版权所有。 
//
// 文件名：InstockDetailedVM
// 文件功能描述：食材明细实体VM
//
// 
// 创建标识：2012-02-01 zhou
//
// 修改标识：
// 修改描述：
//
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace WaiGaoQiaoWeb.Models
{
    public class ConsumablesDetailVM
    {
        public int ID
        {
            get;
            set;
        }
        [Display(Name="进货日期")]
        [Required(ErrorMessage = "进货日期不能为空")]
        public string InstockDt1
        {
            get;
            set;
        }
        [Display(Name = "零星物品")]
        [Required(ErrorMessage = "零星物品不能为空")]
        public int Goods_ID
        {
            get;
            set;
        }
      
        [Display(Name = "数量")]
        [Required(ErrorMessage = "数量不能为空")]
        [RegularExpression(@"^[1-9]\d*$", ErrorMessage = "数量必须为正整数")]
        public int Count
        {
            get;
            set;
        }

        [Display(Name = "操作员")]
        public string UserMan
        {
            get;
            set;
        }
       [Display(Name = "物品类型")]
        public string SpType
        {
            get;
            set;
        }
        [Display(Name="备注")]
        public string Remark
        {
            get;
            set;
        }
        public string RecordDateTime
        {
            get;
            set;
        }
        public string OperatorID
        {
            get;
            set;
        }
        public string OrderNo
        {
            get;
            set;
        }
        //[Required(ErrorMessage = "零星物品不能为空")]
        /// <summary>
        /// 零星物品
        /// </summary>
        public string Goods_ID1
        {
            get;
            set;
        }
    }
}